//
//  HistoryViewController.h
//  ZingBrowser
//
//  Created by -Xh- on 3/4/13.
//  Copyright (c) 2013 -Xh-. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HistoryAccess.h"
#import "HistoryGroupProvider.h"
#import "HistoryCell.h"
#import "BookmarkAccess.h"
#import "StaticVariables.h"
#import "HistoryHeader.h"
#import "SGBrowserViewController.h"
@protocol HistoryViewControllerDelegate <NSObject>

@optional
-(void)onUserClickOnCell:(HistoryModel*)_history;
-(void)onOpenCellInNewTab:(HistoryModel*)_history;
-(void)onChooseRemoveSpeedDialFromHistoryAtID:(NSString*)_id;
-(void)onChooseSetAsSpeedDialWithModel:(SpeedDialModel*)_speedDial;
-(void)onHistoryGoBack;
@end


@interface HistoryViewController : UIViewController<UITabBarDelegate,UITableViewDataSource,UITableViewDelegate,HistoryCellDelegate,UIActionSheetDelegate,HistoryHeaderDelegate,UIAlertViewDelegate,EditorDelegate>

typedef enum{
    TabHistory,TabFavourite
}TabType;



@property (strong, nonatomic) IBOutlet UITabBar *tabBar;
@property (strong, nonatomic) IBOutlet UITableView *infoList;
//the historyAccess obtained from the mainController

@property (strong, nonatomic) IBOutlet UITabBarItem *bookmarkItem;
@property (strong, nonatomic) IBOutlet UITabBarItem *historyItem;
@property (nonatomic) TabType defaultTabType;
@property (nonatomic) SGBrowserViewController* browser;
@property (nonatomic) id<HistoryViewControllerDelegate> delegate;
-(void)prepareForTransition;

@end
